import java.sql.SQLException;

public class hello {
    public static void main(String[] args) {
        HikariConfig config = new HikariConfig();
        config.setJdbcUrl("jdbc:mysql://localhost:3306/test");
        config.setUsername("root");
        config.setPassword("319257rj");
        HikariDataSource ds = new HikariDataSource(config);
        try (Connection conn = ds.getConnection()) {
            System.out.println("Connected to database!");
        } catch (SQLException e) {
            e.printStackTrace();
        }
        ds.close();


    }
}
